home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 10 / AACD 10.iso / AACD / Resources / System / BoingBag1 / Contributions / InstallerNG / GUI-API / example / igui_Request.c < prev    next >
C/C++ Source or Header  |  1999-10-28  |  2KB  |  71 lines

  1.  
  2. #include "includes.h"
  3. #include "installergui_data.h"
  4.  
  5. /********************************************************************
  6.  *
  7.  *  DESCRIPTION
  8.  *
  9.  *  pop up a standard requester. the complete GUI must be locked
  10.  *  during the time the requester is visible.
  11.  *  NOTE: see intuition.EasyRequestArgs for additional explanation
  12.  *
  13.  *  IN: application - pointer to the private application structure
  14.  *      title - title of the requester
  15.  *      gads - the gadget text of the requester, seperated by |
  16.  *      body - a text for the body of the requester; may contain
  17.  *             standard format strings
  18.  *      args - pointer to the arguments, which should replace the
  19.  *             format characters in body
  20.  *
  21.  *  OUT: the number of the selected button (see intuition.EasyRequestArgs
  22.  *       for more details)
  23.  *
  24.  */
  25.  
  26. /********************************************************************
  27.  *
  28.  *  STATIC
  29.  *
  30.  */
  31.  
  32. /********************************************************************
  33.  *
  34.  *  EXTERN
  35.  *
  36.  */
  37.  
  38. /********************************************************************
  39.  *
  40.  *  PUBLIC
  41.  *
  42.  */
  43.  
  44. /********************************************************************
  45.  *
  46.  *  CODE
  47.  *
  48.  */
  49.  
  50. long __asm igui_Request(register __a0 APTR application,
  51.                         register __a1 char *title,
  52.                         register __a2 char *gads,
  53.                         register __d0 char *body,
  54.                         register __d1 APTR args)
  55.  
  56. {
  57.   #ifdef DEBUG
  58.   DEBUG_MAKRO
  59.   #endif
  60.  
  61.   {
  62.     struct Application *app = (struct Application *) application;
  63.  
  64.     // request
  65.     return(MUI_RequestA(app->app_Application,
  66.                         app->app_MainWindow,
  67.                         0, title, gads, body, args));
  68.   }
  69. }
  70.  
  71.